package com.dxy.md.service.impl;

import com.dxy.md.model.po.MessagePO;
import com.dxy.md.mapper.MessageMapper;
import com.dxy.md.service.MessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zaxxer.hikari.HikariDataSource;
import org.apache.ibatis.mapping.Environment;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.apache.ibatis.transaction.TransactionFactory;
import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;

/**
 * <p>
 * 消息表 服务实现类
 * </p>
 *
 * @author builder
 * @since 2022-03-25
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, MessagePO> implements MessageService {

    @Override
    public MessagePO findMessageById(String id) {
        return baseMapper.selectById(id);
    }
}
